package tp3.geoju;

import java.util.ArrayList;
import java.util.Vector;

public class Article {

	private String libelle;
	private double prix;
	
	private Vector<Commande> commandes;
	
	public String getLibelle() {
		return libelle;
	}
	public void setLibelle(String libelle) {
		this.libelle = libelle;
	}
	public double getPrix() {
		return prix;
	}
	public void setPrix(double prix) {
		this.prix = prix;
	}
	public Article(String libelle, double prix) {
		
		super();
		if(prix<0) prix=-prix;
		
		this.libelle = libelle;
		this.prix = prix;
	}
	
	public void associerCommande (Commande c) {
		this.commandes.add(c);
	}
	
}
